package com.cloudfun.campusshare.entity;

import com.cloudfun.campusshare.common.constant.ReplenishStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "replenish_log")
@Accessors(chain = true)
public class ReplenishLog extends CreatorPersistenceEntity{

    @Id
    @GenericGenerator(name = "id_uuid", strategy = "uuid")
    @GeneratedValue(generator = "id_uuid")
    @Column(unique = true, columnDefinition = ("varchar(40) not null comment '主键uuid'"))
    private String id;

    @Column(name="imei")
    private String imei;

    @Column(name="merchant_id")
    private String merchantId;

    @Column(name="liquid_type")
    private String liquidType;

    @Column(name="oper_name")
    private String operName;

    @Column(name="last_capacity")
    private Integer lastCapacity;

/*    @Column(name="replenish_time")
    private Date replenishTime;*/
}
